package com.heima.api;

import com.heima.model.admin.vo.ApArticleVo;
import com.heima.model.article.dtos.ApArticleDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-article")
public interface IArticleClient {

    @PostMapping("/api/v1/article/save")
    ResponseResult saveArticle(@RequestBody ApArticleDto articleDto);


    //文章人工审核成功后 新增
    @PostMapping("/api/v1/news/auth_pass")
    ApUser authPass(@RequestBody ApArticleVo apArticle) ;






    @PostMapping("/api/v1/article/query")
    ResponseResult queryById( @RequestBody ApArticle apArticle);
}
